package cn.iocoder.yudao.module.worker.enums.trend;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@AllArgsConstructor
@Getter
public enum TrendFileTypeEnum implements IntArrayValuable {

    IMAGE(0, "图片"),
    VOICE(1, "语音"),
    VIDEO(2, "视频");

    private static final int[] ARRAYS = Arrays.stream(values()).mapToInt(TrendFileTypeEnum::getType).toArray();

    /**
     * 类型
     */
    private final Integer type;

    /**
     * 名称
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
